.game-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.boss-panel {
    background: #f0d9d9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hand-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 120px;
    padding: 10px;
    background: #e0f0ff;
    border-radius: 8px;
}

.card {
    width: 80px;
    height: 120px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
    /* 新增提示气泡 */
}

.card:hover::before {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

/* 新增音效控件样式 */
.audio-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.7;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card.selected {
  border: 2px solid #ff6b6b;
  background: #ffe3e3;
  transform: translateY(-8px);
}

/* 新增结局界面样式 */
.end-game-overlay {
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 30px 50px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px gold;
  animation: fadeIn 0.5s ease-out;
}

.victory-badge {
  font-size: 3em;
  margin: 20px 0;
  animation: bounce 1s infinite;
}

.joker-status {
  font-size: 1.2em;
  margin: 15px 0;
  color: #ffd700;
}

.gold { background: linear-gradient(45deg, #ffd700, #c5a642) }
.silver { background: linear-gradient(45deg, #c0c0c0, #808080) }
.bronze { background: linear-gradient(45deg, #cd7f32, #8c5a2b) }

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.controls button {
    margin: 5px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.info-panel {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.log {
    height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
}